﻿using BattleServer;
using BattleServer.Service;
using PECommon;

new ProcessLauncher<BattleProcess>(BattleProcess.Instance, DefaultConfig.BattleID, DefaultConfig.JumpIDInput, args);
namespace BattleServer
{
   
    public class BattleProcess : ServerProcess<BattleProcess>
    {
        //Service
        private BattleNet mBattleNet;
        private LoginNet mLoginNet;
        private BattleTimer mTimer;

        //System
        private BattleAcctSys mAcctSys;
        private BattleWorldSys mWorldSys;

        public BattleNet BattleNet { get { return mBattleNet; } }
        public LoginNet LoginNet { get { return mLoginNet; } }
        public override void Awake()
        {
            mLoginNet = new LoginNet();
            AddSvcAndSys(mLoginNet);
            mBattleNet = new BattleNet();
            AddSvcAndSys(mBattleNet);
            mTimer = new BattleTimer();
            AddSvcAndSys(mTimer);

            mAcctSys = new BattleAcctSys();
            AddSvcAndSys(mAcctSys);
            mWorldSys = new BattleWorldSys();
            AddSvcAndSys(mWorldSys);
            
            base.Awake();
        }
        /// <summary>
        /// 用于处理启动的命令输入，例如退出命令，帮助命令
        /// </summary>
        /// <param name="cMD"></param>
        /// <param name="cmd"></param>
        public override void HandleConsoleCMD(ConsoleCMD cmd, string? str)
        {
            
        }
    }
}
